function bindClick4Button() {
    $("#myButton").click(function (e) {
        var percent=$("#percent4pb").val();
        animateCustomProgressBar(percent);
    })
}
function animateCustomProgressBar(percent) {
    $("#inner").animate({
            'width':(500* percent)/100//修改对象的width
        },
        3000//定义动画的运行时长为3000毫秒
    );
}